﻿<UserControl x:Class="IngressApp.editLectores"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="550" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="400"/>
            <ColumnDefinition Width="Auto" MinWidth="400"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" Name="stkSearch">
            <TextBlock Text="Tipos de Lectores"></TextBlock>
            <ListView d:LayoutOverrides="Width, Height" Margin="20,50,20,20" Name="lstSearch" ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True" >
                <ListView.View>
                    <GridView AllowsColumnReorder="True">
                        <GridViewColumn DisplayMemberBinding="{Binding Path=IdTipoHuella}" Width="0" />
                        <GridViewColumn Header="Clave" Width="100" DisplayMemberBinding = "{Binding Path=Clave}">

                        </GridViewColumn>
                        <GridViewColumn Header="Descripcion" Width="200" DisplayMemberBinding = "{Binding Path=Descripcion}">

                        </GridViewColumn>
                        
                    </GridView>
                </ListView.View>
            </ListView>
        </Grid>
        <StackPanel Grid.Column="1" Name="stkView">
            <Button Name="btnAgregar" Content="+" Width="30" HorizontalContentAlignment="Center" Click="btnAgregar_Click"></Button>
            <Label Content="Clave"></Label>
            <TextBox Name="txtClave" Text="{Binding Clave}"></TextBox>
            <Label Content="Descripcion"></Label>
            <TextBox Name="txtDescripcion" Text="{Binding Descripcion}"></TextBox>
            <TextBox Name="txtSelectedItem" Text="{Binding IdTipoHuella}" Visibility="Collapsed"></TextBox>
            
            <Button Height="25" Name="btnAdd" Content="Agregar" Click="btnAdd_Click" Visibility="Collapsed"></Button>
            <Button Height="25" Name="btnUpdate" Content="Salvar" Click="btnUpdate_Click"></Button>
            <Button Height="25" Name="btnDelete" Content="Borar" Click="btnDelete_Click"></Button>
        </StackPanel>
    </Grid>
</UserControl>
